﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for SavedReconciliation
/// </summary>
public class SavedReconciliation
{
    private int rec_id = -1;
    private string rec_name = string.Empty;
    private string rec_Ltablename = string.Empty;
    private string rec_Rtablename = string.Empty;
    private string rec_Otablename = string.Empty;
    private string rec_Owner = string.Empty;
    private int rec_link = -1;
    private DateTime rec_LastRun = DateTime.MinValue;
    private List<DataStuctureObj> m_LeftHandSide = null;
    private List<DataStuctureObj> m_RightHandSide = null;
    private List<DataStuctureObj> m_OutputReport = null;

    public DateTime LastRun
    {
        get
        {
            return rec_LastRun;
        }
        set
        {
            rec_LastRun = value;
        }
    }
    public int ID
    {
        get
        {
            return rec_id;
        }
        set
        {
            rec_id = value;
        }
    }
    
    public string Name
    {
        get
        {
            return rec_name;
        }
        set
        {
            rec_name = value;
        }
    }
    public string Owner
    {
        get
        {
            return rec_Owner;
        }
        set
        {
            rec_Owner = value;
        }
    }
    public string LeftTable
    {
        get
        {
            return rec_Ltablename;
        }
        set
        {
            rec_Ltablename = value;
        }
    }
   
    public string RightTable
    {
        get
        {
            return rec_Rtablename;
        }
        set
        {
            rec_Rtablename = value;
        }
    }
   
    public string OutPutTable
    {
        get
        {
            return rec_Otablename;
        }
        set
        {
            rec_Otablename = value;
        }
    }
    
    public int RecLink
    {
        get
        {
            return rec_link;
        }
        set
        {
            rec_link = value;
        }
    }

    public List<DataStuctureObj> LeftTableStructure
    {
        get { return m_LeftHandSide; }
        set { m_LeftHandSide = value; }
    }

    public List<DataStuctureObj> RightTableStructure
    {
        get { return m_RightHandSide; }
        set { m_RightHandSide = value; }
    }
    public List<DataStuctureObj> OutputReportStructure
    {
        get { return m_OutputReport; }
        set { m_OutputReport = value; }
    }
    public SavedReconciliation(string id, string strname, string Lrun, string LTable, string RTable, string OTable, string Sowner, string reclink)
	{
        ID = Convert.ToInt32(id);
        Name = strname;
        LeftTable = LTable;
        RightTable = RTable;
        OutPutTable = OTable;
        Owner = Sowner;
        RecLink = Convert.ToInt32(reclink);
        LastRun = Convert.ToDateTime(Lrun);

        LeftTableStructure = new List<DataStuctureObj>();
        RightTableStructure = new List<DataStuctureObj>();
        OutputReportStructure = new List<DataStuctureObj>();


	}
    /*
     * brand new Reconciliation
     */
    public SavedReconciliation()
    {        
        LeftTableStructure = new List<DataStuctureObj>();
        RightTableStructure = new List<DataStuctureObj>();
        OutputReportStructure = new List<DataStuctureObj>();
    }

}